
<%= paginator.render do -%>
  <nav class="pagination">
    <%= first_page_tag unless current_page.first? %>
    <%= prev_page_tag unless current_page.first? %>
    <% each_page do |page| -%>
      <% next if page != current_page %>
      <%= page_tag page %>
    <% end -%>
    <%= next_page_tag unless current_page.last? %>
  </nav>
<% end -%>
